package homework.day08;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Test04 {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        for (int i=1;i<=100;i++){
            list.add(i);
        }
        System.out.println(list);
        List<Integer> sublist=list.subList(39,60);
        Collections.reverse(sublist);
        System.out.println(list);

    }
}
